<!--
 * @Description:
 * @version:
 * @Author: 尹鹏孝
 * @Date: 2023-03-06 10:38:08
 * @LastEditors: 尹鹏孝
 * @LastEditTime: 2023-03-06 10:43:56
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue侦听器</title>
</head>
<body>
    watch监听默认是浅层次的，再赋值时会触发回调函数，
    <!-- 嵌套属性不会发生变化，当想监听所有嵌套的变更时候，需要深层监听 -->
    watch:{
        someObject:{
            handler(newValue,oldValue){

            }
        },
        depp:true,
        flush:"post"
    }

    <div ref="mms">
        {{112333}}
    </div>
</body>
</html>